/*
 * MapperTile.cpp
 *
 *  Created on: Jan 10, 2014
 *      Author: nick
 */

#include "MapperTile.h"

//Methods
Tile::Tile() {
	type = -1;

	TileSprite = -1;
}
;

Tile::~Tile() {
}
;

//show( SDL_Surface* destination ) //apply_surface
void Tile::show(int cameraX, int cameraY, SDL_Surface * source,
		SDL_Surface * destination, SDL_Rect * clip) {
	//Holds offsets
	SDL_Rect offset;

	//Get offsets
	offset.x = box.x - cameraX;
	offset.y = box.y - cameraY;

	//Blit
	SDL_BlitSurface(source, clip, destination, &offset);
}

//remove
void Tile::remove() {
	type = -1;
}

